import { createApp } from 'vue'
import App from './components/AllComp.vue'

const app = createApp(App)
// 注册一个全局自定义指令
app.directive('focus',{
    // 当被绑定的元素插入到DOM的时候执行..
    mounted(el){
      el.focus();
      el.value = '获得焦点'
    }
  })
app.mount('#app')
